<template>
  <div>
    <input type="button" value="减少" @click="remove">
    <input type="button" value="增加" @click="add">
    <br>
    <input type="text" v-model="$store.state.count">
  </div>
</template>

<script>
export default {
  data() {
    return {
       msg:'1233'
    };
  },
  methods: {
    add(){
      this.$store.commit('increment')
    },
    remove(){
      this.$store.commit('substrac')
    }
  },
  
};
</script>

<style lang="scss" scoped>

</style>
